package com.mf.controller;

import com.mf.result.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: lmf
 * @Create: 2024/7/4 13:47
 * Description: 记录日志使用
 */
@RestController
@RequestMapping("log")
@Tag(name = "记录日志使用")
@Slf4j
public class logController {
    @Operation(summary = "dome1")
    @GetMapping("setLog")
    public Result<String> setLog() {
        log.error("我是错误日志");
        log.warn("我是警告日志");
        log.debug("我是调试日志");
        log.trace("我是追踪日志");
        log.info("我是日志");
        return Result.success(null);
    }
}
